<template>
  <div class="auto">
  <div class="col-sm-12">
    <div class="col-sm-4"></div>
    <span>气表运行正常--------------------------{{user[0].gasmeteroperation === 0 ? '否' : (user[0].gasmeteroperation === 1 ? '是' : '')}}</span>
  </div><br/><br/>
  <div class="col-sm-12">
    <div class="col-sm-4"></div>
    <span>泄露--------------------------{{user[0].leakage === 0 ? '否' : (user[0].leakage === 1 ? '是' : '')}}</span>
  </div><br/><br/>
  <div class="col-sm-12">
    <div class="col-sm-4"></div>
    <span>转入维修处理--------------------------{{user[0].maintenancetreatment === 0 ? '否' : (user[0].maintenancetreatment === 1 ? '是' : '')}}</span>
  </div><br/><br/>
  <div class="col-sm-12">
    <div class="col-sm-4"></div>
    <span>气表铅封--------------------------{{user[0].gasseals === 0 ? '否' :(user[0].gasseals === 1 ? '是' : '')}}</span>
  </div><br/><br/>
  <div class="col-sm-12">
    <div class="col-sm-4"></div>
    <span>总承铅封--------------------------{{user[0].sealassembly === 0 ? '否' : (user[0].sealassembly === 1 ? '是' : '')}}</span>
  </div><br/><br/>
  <div class="col-sm-12">
    <div class="col-sm-4"></div>
    <span>螺栓铅封--------------------------{{user[0].boltseal === 0 ? '否' : (user[0].boltseal === 1 ? '是' : '')}}</span>
  </div><br/><br/>

  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >采暖炉</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >吨位</span>
      <span class="col-sm-1;form-control-static" >{{user[0].f_heatingboiler_tonnage}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >台数</span>
      <span class="col-sm-1;form-control-static" >{{user[0].f_heatingboiler_quantity}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >品牌</span>
      <span class="col-sm-1;form-control-static" >{{user[0].f_heatingboiler_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
      <div class="col-sm-1">
        <span class="col-sm-3;form-control-static" >茶水炉</span>
      </div>
      <div class="col-sm-1">
        <span class="col-sm-1;form-control-static" >吨位</span>
        <span class="col-sm-2;form-control-static" >{{user[0].f_teaboiler_tonnage}}</span>
      </div>
      <div class="col-sm-1">
        <span class="col-sm-1;form-control-static" >台数</span>
        <span class="col-sm-2;form-control-static" >{{user[0].f_teaboiler_quantity}}</span>
      </div>
      <div class="col-sm-1">
        <span class="col-sm-1;form-control-static" >品牌</span>
        <span class="col-sm-2;form-control-static" >{{user[0].f_teaboiler_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
      <div class="col-sm-1">
      <span class="col-sm-3;form-control-static" >模块炉</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >吨位</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_moduleboiler_tonnage}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >台数</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_moduleboiler_quantity}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >品牌</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_moduleboiler_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
      <div class="col-sm-1">
      <span class="col-sm-3;form-control-static" >壁挂炉</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >吨位</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_wall_hungboiler_tonnage}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >台数</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_wall_hungboiler_quantity}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >品牌</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_wall_hungboiler_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
      <div class="col-sm-1">
      <span class="col-sm-3;form-control-static" >热水炉</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >吨位</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_waterheater_tonnage}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >台数</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_waterheater_quantity}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >品牌</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_waterheater_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
      <div class="col-sm-1">
      <span class="col-sm-3;form-control-static" >家用灶</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >吨位</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_homekitchen_tonnage}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >台数</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_homekitchen_quantity}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >品牌</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_homekitchen_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
    <div class="col-sm-1">
      <span class="col-sm-3;form-control-static" >火眼</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >台数</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_fiereye_quantity}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >品牌</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_fiereye_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
    <div class="col-sm-1">
      <span class="col-sm-3;form-control-static" >蒸车</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >台数</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_steamcars_quantity}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >品牌</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_smallfireeye_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12" >
    <div class="col-sm-4"></div>
    <div class="col-sm-1">
      <span class="col-sm-3;form-control-static" >小火腿</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >台数</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_smallfireeye_quantity}}</span>
      </div>
      <div class="col-sm-1">
      <span class="col-sm-1;form-control-static" >品牌</span>
      <span class="col-sm-2;form-control-static" >{{user[0].f_steamcars_brand}}</span>
      </div>
  </div><br/><br/>
  <div class="col-sm-12">
    <div class="col-sm-10"></div>
    <button class="btn btn-primary width-80" @click="$back()" v-el:cx>返回</button>
  </div>
  </div>
</template>

<script>
import co from 'co'
import { PagedList } from 'vue-client'
import * as Util from '../Util'
let checkplan = function * (self) {
  let condition = `f_userid=${self.data.f_userid} and f_checkid=${self.data.id}`
 yield self.$post('rs/sql/singleTable_OrderBy', {data:{items:'*',tablename:'t_equipmentinspection',
  condition:condition,orderitem:'f_userid'}},
   {resolveMsg: null, rejectMsg: null})
  .then ((res)=> {
    self.user = res.data
  })
  .catch ((res)=> {
    self.$showMessage('获取用户数据失败')
  })
}
export default {
  title: '设备信息',
  data () {
    return {
      user:[]
    }
  },
  props: ['data'],
  ready () {
    let gen = checkplan(this)
    co(gen)
  },
  methods: {
    search () {

    },
  }
}
</script>
<style media="screen">
  .divtext {
    min-width: 50px;
    max-width: 200px;
    border: 1px solid green;
    display: inline-block;
  }
</style>
